#include "glare.gles2.DrawStateFactory.h"
#include "glare.gles2.Driver.h"
#include "glare.gles2.SamplerState.h"

namespace Glare {

	GLES2DrawStateFactory::GLES2DrawStateFactory(GLES2Driver* driver) 
		: _driver(driver)
	{
	}

	SamplerState* GLES2DrawStateFactory::CreateSamplerState(const SamplerStateDescription& sampler_description)
	{
		return new GLES2SamplerState(this, sampler_description);
	}

	void GLES2DrawStateFactory::DestroySamplerState(SamplerState* sampler_state)
	{
		delete sampler_state;
	}

	Driver* GLES2DrawStateFactory::GetDriver() const
	{
		return _driver;
	}

	GLES2Driver* GLES2DrawStateFactory::GetD3DDriver() const
	{
		return _driver;
	}
}
